﻿@model AuctionControllerModel.Index
<div class="pageHeader">
    <form>
    <div class="searchBar">
        <ul class="searchContent">
            <li>
                <label>
                    名称</label>
                <input type="text" name="name" />
            </li>
        </ul>
        <div class="subBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                查找</button></div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/order/home/detail/{param}" target="dialog"><span>详细信息</span></a></li>
        </ul>
    </div>
    <table class="table" width="2160" layouth="138">
        <thead>
            <tr>
                <th width="40">
                    Id
                </th>
                <th width="120">
                    产品Id
                </th>
                <th>
                    名 称
                </th>
                <th width="120">
                    等 级
                </th>
                <th width="120">
                    每次出价(拍币)
                </th>
                <th width="120">
                    倒计时(秒)
                </th>
                <th width="120">
                    官网价格(元)
                </th>
                <th width="120">
                    运费及保费(元)
                </th>
                <th width="120">
                    市场价格(元)
                </th>
                <th width="120">
                    是否可补差购买
                </th>
                <th width="120">
                    是否可以使用免费拍币
                </th>
                <th width="160">
                    上架时间
                </th>
                <th width="100">
                    竞拍开始时间
                </th>
                <th width="100">
                    竞拍结束时间
                </th>
                <th width="120">
                    当前状态
                </th>
                <th width="120">
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var o in Model.Auctions)
            {
                <tr rel="@(o.Id)" target="param">
                    <td>@o.Id
                    </td>
                    <td>@o.ProductId
                    </td>
                    <td>@o.Name
                    </td>
                    <td>@o.Grade
                    </td>
                    <td>@o.PerPrice
                    </td>
                    <td>@o.Interval
                    </td>
                    <td>@o.BuyPrice.ToString("N")
                    </td>
                    <td>@o.AdditionalCharge.ToString("N")
                    </td>
                    <td>@o.MarketPrice.ToString("N")
                    </td>
                    <td>@o.DiffBuySupported
                    </td>
                    <td>@o.FreeBidSupported
                    </td>
                    <td>@o.OnlineTime.ToString("yyyy-MM-dd HH:mm:ss")
                    </td>
                    <td>@o.StartTime
                    </td>
                    <td>@o.StopTime
                    </td>
                    <td>@o.Status
                    </td>
                    <td>@o.Id
                    </td>
                </tr>
            }
        </tbody>
    </table>@Pager.GetHtml(Model.Auctions.PageIndex, Model.Auctions.PageSize, Model.Auctions.TotalRecords)
</div>
